﻿@{
	Layout = "~/Views/Shared/_Layout.cshtml";
	ViewBag.Title = "系统管理";
}
@section head{
	<link href="/css/themes/start/jquery-ui.css" rel="stylesheet" />
	<link href="/css/jscal2.css" rel="stylesheet" />
	<script type="text/javascript" src="/Scripts/jquery-ui-1.8.11.min.js"></script>
	<script type="text/javascript" src="/Scripts/jquery-ui.unobtrusive-1.0.1.min.js"></script>
	<script type="text/javascript" src="/Scripts/jquery.unobtrusive-ajax.js"></script>
	<script type="text/javascript" src="/Scripts/jquery.layout.min.js"></script>
	<script type="text/javascript" src="/Scripts/jscal2.js"></script>
	<script type="text/javascript" src="/Scripts/lang/cn.js"></script>
	<script type="text/javascript">
		$(".print").live("click",function () { open($(this).attr("href")); return false; });
		$(function () {
			$.ajaxSetup({ cache: false });
			$('body').layout({ south__spacing_open: 0 });
			$("#page-loading").ajaxStart(function () { $(this).show(); });
			$("#page-loading").ajaxStop(function() {
				$(".btn").button();
				if ($.browser.msie && ($.browser.version <= 7)) {
					$("input.ui-button").css({ "padding": ".11em 1em" });
				};
				$(this).hide();
			});
			$("#errormsg").dialog({ title: "系统信息", autoOpen: false, modal: true, width: 800 });
			$("#errormsg").ajaxError(function (event, request) {
				if (request.responseText == "") {
					$("#errormsg").html("您的网络无法访问到服务器，请稍后再试！");
				}
				else {
					$("#errormsg").html(request.responseText);
				}
				$("#errormsg style").remove();
				$("#errormsg").dialog("open");
			});

		});
	</script>
}
<div class="ui-layout-center ui-layout-content ui-widget-content" id="Main">
	<div class="ui-widget-header">
		<div style="padding: 5px 10px; font-size: 120%">欢迎登陆系统  @DateTime.Now.ToShortDateString()</div>
	</div>
</div>
<div class="ui-layout-north ui-widget-content ui-widget-header">
	<span style="float: right; padding: 7px 40px;">
		当前用户：@(Common.User.NickName??Common.LoginName)
		@Html.ActionLink("退出", "Index", "Logout")
	</span>
	<span style="font-size: 200%;">@ViewBag.Title</span>
	<span>@Constants.STitle</span>
</div>
<div class="ui-layout-south  ui-widget-content">@Constants.SCopyRight</div>
<div class="ui-layout-west ui-widget-content AccordionMenu">
	<div data-jqui-acc-autoheight="False" data-jqui-type="accordion">
		<h3>公司管理</h3>
		<div>
			<ul>
				<li>@Ajax.ActionLink("会员列表", "Index", "Client", new AjaxOptions { UpdateTargetId="Main"})</li>
				<li>@Ajax.ActionLink("公司列表", "Index", "Company", new AjaxOptions { UpdateTargetId="Main"})</li>
				<li>@Ajax.ActionLink("介绍信列表", "Index", "Introduce", new AjaxOptions { UpdateTargetId="Main"})</li>
				<li>@Ajax.ActionLink("公司信息（未审核）", "Index", "CompanyAudit", new AjaxOptions { UpdateTargetId = "Main" })</li>
			</ul>
		</div>
		<h3>系统管理</h3>
		<div>
			<ul>
				<li>@Ajax.ActionLink("修改密码", "ChangePassword", "Account", new AjaxOptions { UpdateTargetId="Main"})</li>
				@if(Common.User.Available){
					<li>@Ajax.ActionLink("系统用户", "Index", "Operator", new AjaxOptions { UpdateTargetId="Main"})</li>
					<li>@Ajax.ActionLink("数据字典", "Index", "Dictionary", new AjaxOptions { UpdateTargetId="Main"})</li>
				}
			</ul>
		</div>
	</div>
</div>
<div id="errormsg"></div>
<span id="page-loading"><img src="/css/Loading/05043130.gif" /></span>